package com.ydgk.jishuzhan.dao;

import com.ydgk.jishuzhan.beans.Score;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface ScoreMapper {


    void scoreAdd(Score score);

    List<Score> getScores(Map<String, Object> map);

    Integer queryScoreTotal(Map<String, Object> map);

    @Select("select sum(worth) from score where userId = #{userId}")
    int getCount(Integer userId);
}
